package com.chen.wow.day02.javaconfig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TeacherConfig {

	@Bean
	public Teacher teacher(){
		Teacher teacher = new Teacher();
		teacher.setAge(20);
		teacher.setName("大学老师");
		return teacher;
	}
}
